package com.itheima.demo;

public class Method5 {
    public static void main(String[] args) {
        int result = getMac(10, 20);
        System.out.println(result);
        for (int i = 1; i < result; i++) {
            System.out.println("hello,world");
        }
    }
    public static int getMac(int a, int b){
        if (a>b){
            return a;
        }else {
            return b;
        }
    }
}
